package com.example.kafka.producer;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.integration.channel.DirectChannel;
import org.springframework.messaging.MessageChannel;

@Configuration
public class ProducerChannel {


    @Bean("kafkaOut")
    @Qualifier("toKafka")
    public MessageChannel producer(){
        return new DirectChannel();
    }
}
